﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>新闻管理</title>
    <link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
    <script type="text/javascript" src="scripts/jquery-1.9.0.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.form.js"></script>
    <script type="text/javascript" src="resources/scripts/simpla.jquery.configuration.js"></script>
    <script type="text/javascript" src="resources/scripts/facebox.js"></script>
    <script type="text/javascript" src="resources/scripts/jquery.wysiwyg.js"></script>
    <script type="text/javascript" src="scripts/NewsJs.js"></script>
    <script type="text/javascript">
        var currentIndex, categoryCodeUI, editor, type = "ImageCategory";
        $(document).ready(function () {
            jQuery(document).ready(function () {
                jQuery('a[rel*=facebox]').facebox()
            })
            //ListNewsCategory();
            ListNewsCategory("ImageCategory");
            //$('#messages').load('AddNews.html');

            $("#btnAddCategory").click(function () {
                ShowAddWindow("ImageCategory", $(this), "AddImageCategory.html");
            })

            $("#btnDeleteCategory").click(function () {
                var checkboxs = $("#tableBody input[type=checkbox]:checked");
                if (CheckSelectedItems(checkboxs))
                    DeleteSeletedCategory(checkboxs);
            })
        });
    </script>
</head>
<body>
    <div id="body-wrapper">
        <div id="sidebar">
            <div id="sidebar-wrapper">
                <h1 id="sidebar-title">
                    <a href="#">管理后台</a></h1>
                <div id="profile-links">
                    <br />
                    <a href="../User/index.html" title="网站">网站</a> &nbsp; | &nbsp; <a href="#" title="注销">
                        注销</a>
                </div>
                <ul id="main-nav">
                    <li><a href="index.html" class="nav-top-item no-submenu">首页 </a></li>
                    <li><a href="#" class="nav-top-item">新闻管理</a>
                        <ul>
                            <li><a href="category.html">新闻类别管理</a></li>
                            <li><a href="index.html">新闻管理</a></li>
                        </ul>
                    </li>
                    <li><a href="#" class="nav-top-item current">图片管理 </a>
                        <ul>
                            <li><a class="current" href="ImageCategory.html">图片类别管理</a></li>
                            <li><a href="ImageViewer.html">图片管理</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
        <div id="main-content">
            <div class="clear">
                <p>
                    <a class="button" id="btnAddCategory" href="#">新建</a> <a class="button" id="btnDeleteCategory"
                        href="#">批量删除</a>
                </p>
            </div>
            <div class="content-box">
                <div class="content-box-header">
                    <h3>
                        图片类别列表</h3>
                    <div class="clear">
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab" id="tab1">
                        <table id="tabelCategory">
                            <thead>
                                <tr>
                                    <th>
                                        <input class="check-all" type="checkbox" value="all" />
                                    </th>
                                    <th>
                                        编号
                                    </th>
                                    <th>
                                        名称
                                    </th>
                                    <th>
                                        描述
                                    </th>
                                    <th>
                                        创建时间
                                    </th>
                                    <th>
                                        操作
                                    </th>
                                </tr>
                            </thead>
                            <tbody id="tableBody">
                            </tbody>
                            <tfoot>
                            </tfoot>
                        </table>
                    </div>
                    <div class="clear">
                        <div class="pagination" id="divPage">
                        </div>
                    </div>
                </div>
            </div>
            <div id="footer">
            </div>
        </div>
    </div>
</body>
</html>
